﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Domain.Entities;

namespace ERP.ERPSystem.ProductionSystem.Dto
{
    /// <summary>
    /// 生产系统-质量管理-待检任务
    /// </summary>
    public class PendingtasksDTO:EntityDto<int> 
    {
        /// <summary>
        /// 单据编码
        /// </summary>
        public string FormCode { get; set; }
        /// <summary>
        /// 检测项型
        /// </summary>
        public string TestingItems { get; set; }
        /// <summary>
        /// 物资编码
        /// </summary>
        public string MaterialCode { get; set; }
        /// <summary>
        /// 物资名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 待检数量
        /// </summary>
        public int PendingNum { get; set; }
        /// <summary>
        /// 位置
        /// </summary>
        public string Position { get; set; }
    }

    /// <summary>
    /// 待检任务查询请求DTO
    /// </summary>
    public class PendingtasksQueryDTO
    {
        /// <summary>
        /// 单据编码
        /// </summary>
        public string? FormCode { get; set; }
        /// <summary>
        /// 物资名称
        /// </summary>
        public string? MaterialName { get; set; }
        /// <summary>
        /// 检测类型
        /// </summary>
        public string? TestingItems { get; set; }
        /// <summary>
        /// 页码
        /// </summary>
        public int Page { get; set; } = 1;
        /// <summary>
        /// 每页数量
        /// </summary>
        public int Limit { get; set; } = 10;
    }

    /// <summary>
    /// 分页结果DTO
    /// </summary>
    public class PendingtasksPageResultDTO
    {
        /// <summary>
        /// 状态码
        /// </summary>
        public int Code { get; set; } = 0;
        /// <summary>
        /// 消息
        /// </summary>
        public string Msg { get; set; } = "";
        /// <summary>
        /// 总数量
        /// </summary>
        public int Count { get; set; }
        /// <summary>
        /// 数据列表
        /// </summary>
        public List<PendingtasksDTO> Data { get; set; } = new List<PendingtasksDTO>();
    }
}
